package com.moore.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.moore.bean.Candidate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CandidateMapper extends BaseMapper<Candidate> {

    @Select("SELECT name, candidate_img FROM candidate WHERE candidate_id = #{candidateId}")
    Candidate selectById(Long candidateId);
}